<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<html>
<head>
<title>课程列表</title>
</head>
<body>

	<c:if test="${not empty message}">
		<div id="message" class="alert alert-success">
			<button data-dismiss="alert" class="close">×</button>
			${message}
		</div>
	</c:if>


	<table id="contentTable"
		class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>课程</th>
				<th>课程时间</th>
				<th>课程内容</th>
				<th>课程课件</th>
				<th>管理</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${course.courseDetails}" var="courseDetail">
				<tr>
					<td><a href="${ctx}/admin/courseDetail/update/${courseDetail.id}?courseId=${courseId}">${courseDetail.title}</a></td>
					<td>${courseDetail.vedeoTime}</td>
					<td>${courseDetail.content}</td>
					<td>${courseDetail.practicePdf}</td>
					<td><a href="${ctx}/admin/courseDetail/delete/${courseDetail.id}?courseId=${course.id}">删除</a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>

</body>
</html>